﻿
function loadScript(parentElement,fn)
{
	var z=document.createElement('script');
	z.src=fn;
	parentElement.appendChild(z);
}

var scriptsDivName='p4_summary_scripts_div';
var d=document.getElementById(scriptsDivName);

if(d==null)
{
	//create scripts element
	var b=document.body;
	var div=document.createElement('div');
	div.id=scriptsDivName;
	b.appendChild(div);
	
	var root='http://p4summary.googlecode.com/svn/trunk/';

	loadScript(div,'http://jquery.com/src/jquery-latest.js')
	loadScript(div,root+'main.js');
}
else
{
	start();
}